<!DOCTYPE html>
<html>
<head>
  <meta charset="UTF-8">
  <link rel="stylesheet" href="popup.css">
</head>
<body>
  <div class="calculator">
    <h3>风险计算器</h3>
    <div class="input-group">
      <label>账户金额 ($):</label>
      <input type="number" id="accountSize" step="0.01">
    </div>
    <div class="input-group">
      <label>止损百分比 (%):</label>
      <input type="number" id="stopLossPercent" step="0.01">
    </div>
    <div class="input-group">
      <label>交易周期：</label>
      <select id="timeframe">
        <option value="minute">分钟周期 (1%)</option>
        <option value="hour">小时周期 (2.5%)</option>
        <option value="daily">日线周期 (5%)</option>
      </select>
    </div>
    <div class="result">
      <p>建议仓位: $<span id="positionSize">-</span></p>
      <p>最大亏损: $<span id="riskAmount">-</span></p>
    </div>
  </div>
  <script src="popup.js"></script>
</body>
</html> 